@import "~@/styles/mixin.scss";
.page-card {
    background: #fff;
    @include b-radius(15);
    box-shadow: 0px 3px 10px 1px rgba(86, 125, 244, 0.1);
    & + .page-card {
        @include mt(14);
    }
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #727272;
        @include padding(16, 16);
        .card-title {
            @include fs(14);
            @include h(20);
            @include lh(20);
        }
        .card-header__btn {
            color: $base-color;
            border: 1px solid #b3c4fa;
            background: transparent;
            @include fs(12);
            @include lh(18);
            @include padding(2, 6);
            @include b-radius(15);
        }
        .org-btn {
            color: $base-color;
        }
    }
    .card-main {
        @include padding(0, 16);
        @include pb(10);
    }
}

.has-swipe-card {
    .mint-swipe {
        @include h(480);
        .mint-swipe-indicator {
            @include w(48);
            @include h(3);
            @include b-radius(0);
            margin: 0;
            vertical-align: middle;
            &:first-child {
                border-top-left-radius: px2rem(11);
                border-bottom-left-radius: px2rem(11);
            }
            &:last-child {
                border-top-right-radius: px2rem(11);
                border-bottom-right-radius: px2rem(11);
            }
            &.is-active {
                @include h(4);
                background: $base-color;
                opacity: 1;
            }
        }
    }
}

.about-main {
    @include b-radius(15);
    @include padding(0, 10);
    background: #fff;
    overflow: hidden;
    box-shadow: 0px 3px 10px 1px rgba(86, 125, 244, 0.1);
    .mint-cell {
        @include h(46);
        @include lh(46);
        & + .mint-cell {
            border-top: 1px solid #eee;
        }
        &:last-child {
            background-image: none;
        }
        .mint-cell-wrapper {
            background-image: none;
        }
    }
    .cell-icon {
        @include w(18);
        @include h(18);
    }
}

.tab-panel {
    .mint-switch {
        .mint-switch-input:checked + .mint-switch-core {
            background-color: #7ed266;
            border-color: #7ed266;
        }
        .mint-switch-core {
            @include w(44);
            @include h(24);
            &:before {
                @include w(42);
                @include h(22);
            }
            &:after {
                @include w(22);
                @include h(22);
            }
        }
    }
}

.spaceDetail, .equipmentDetail {
    .mint-popup {
        &.mint-popup-center {
            border-radius: 0.1rem;
        }
    }
}

.talk-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    .talk-voice {
        width: 240px;
        height: 100px;
        background-color: rgba(255, 255, 255, 0.88);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: all 0.3s ease;

        &.cancel-mode {
            background-color: rgba(255, 87, 87, 0.9);
            transform: scale(1.1);
        }

        .wave {
            width: 190px;
            height: 50px;
        }

        .cancel-hint {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: white;

            .cancel-icon {
                font-size: 36px;
                margin-bottom: 8px;
                animation: shake 0.5s infinite;
            }

            .cancel-text {
                font-size: 14px;
                font-weight: bold;
            }
        }

        .record-hint {
            position: absolute;
            bottom: -35px;
            left: 50%;
            transform: translateX(-50%);

            .swipe-up-hint {
                font-size: 12px;
                color: white;
                text-align: center;
                background-color: rgba(0, 0, 0, 0.6);
                padding: 4px 8px;
                border-radius: 4px;
                white-space: nowrap;
            }
        }

        &::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid rgba(255, 255, 255, 0.88);
        }

        &.cancel-mode::after {
            border-top-color: rgba(255, 87, 87, 0.9);
        }
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 自定义vant的loading样式 */
.loading-custom {
    &.van-toast {
        width: 64px;
        min-height: 64px;
    }
    .van-icon {
        img {
            width: 40px;
            height: auto;
        }
    }
}
.loading-custom-mini {
    &.van-toast {
        width: 32px;
        min-height: 32px;
    }
}
